<div class = "big-main">
<link href="<?php echo base_url();?>css/share/layout.css" rel="stylesheet" type="text/css" />
<link href="<?php echo base_url();?>css/share/list.css" rel="stylesheet" type="text/css" />
<div class="main">
  <div class = "cat-title">资料列表</div>
  
  <div class="list">
    <?php $isodd=true; foreach ($row as $item){?>
    <div class="<?=($isodd?"oddline":"evenline") ?>">
      <div class = "cat_td"><a class = "link" href="<?=site_url()?>/share/document/preview/<?=$item['fid']?>"><?php echo $item["title"]?></a><span class = "upload_time"><?php echo $item["upload_time"]?></span>
    </div>
      <div class = "info">
	<span class = "info_item"><?php echo "科目: ".$item["subject"]?></span>
	<span class = "info_item">|</span>
	<span class = "info_item"><?php echo "文档上传者: ".$item["username"]?></span>
	<span class = "info_item">|</span>
	<span class = "info_item"><?php echo "下载次数: ".$item["download_times"]?></span>
      </div>
    </div>
    <?php $isodd=!$isodd; } ?>
  </div>
  <div class = "tag">
    <?php if(($from)>=$pages){?>
    <a class="first" href="<?php echo site_url("/share/category/show/paper/0")?>">首页</a>
    <a class="prev" href="<?php echo site_url("/share/category/show/paper/").'/'.($from-$pages)?>">上一页</a>
    <?php } ?>
    <?php if(($from)<=$item_cnt-$pages){?>
	  <a class="next" href="<?php echo site_url("/share/category/show/paper/").'/'.($from+$pages)?>">下一页</a>
	  <?php } ?>
	<span>共计<?=$item_cnt?>条分享</span>
  </div>
</div>
<div class="right-box"> 
  <div class="list-box"> 
    <div class = "list-box-title"> 
      热门分类
    </div> 
    
    <div class="list-item"><a href="<?php echo base_url();?>index.php/share/category/show/paper">试卷</a></div> 
    <div class="list-item"><a href="<?php echo base_url();?>index.php/share/category/show/answer">作业答案</a></div> 
	  
    <div class="list-item"><a href="<?php echo base_url();?>index.php/share/category/show/textbook">教材</a></div> 
	  
    <div class="list-item"><a href="<?php echo base_url();?>index.php/share/category/show/note">笔记</a></div> 
	  
    <div class="list-item"><a href="<?php echo base_url();?>index.php/share/category/show/other">其他</a></div> 
	  
  </div> 
  
</div>

<div class = "clear"></div>
<!--div.main 结束-->
<script type = "text/javascript">
	  $(document).ready(function(  ){
	      $( ".oddline" ).mouseover( function(  ){
		  $( this ).css( "background-color","#EBF5FC" );
		});
	      $( ".oddline" ).mouseleave( function(  ){
		  $( this ).css( "background-color","#FFF" );
		});
	      $( ".evenline" ).mouseover( function(  ){
		  $( this ).css( "background-color","#EBF5FC" );
		});
	      $( ".evenline" ).mouseleave( function(  ){
		  $( this ).css( "background-color","#FFF" );
		});
	      $( ".list-item" ).mouseover( function(  ){
		  $( this ).css( "background-color","#EBF5FC" );
		});
	      $( ".list-item" ).mouseleave( function(  ){
		  $( this ).css( "background-color","#FFF" );
		});
	    });
</script>
</div>
